package com.myself.dao;

import com.myself.pojo.User;
import org.dom4j.DocumentException;

import java.beans.PropertyVetoException;
import java.util.List;

public interface IUserDao {
    // 查询所有用户
    public List<User> findAll() throws PropertyVetoException, DocumentException, Exception;
    // 根据条件进行用户查询
    public User findByCondition(User user) throws PropertyVetoException, DocumentException, Exception;

    // 添加
    public int saveUser(User user);

    // 更新
    public int updateUser(User user);

    // 删除
    public int deleteUser(int id);
}
